import requests from './request'

export async function get(url, params, config) {
  return requests(url, {
    method: 'get',
    params,
    ...config,
  })
}

export async function post(url, data, config) {
  return requests(url, {
    method: 'post',
    data,
    ...config,
  })
}

export function request(url, config) {
  return requests(url, {
    ...config,
  })
}
